home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / clearerr.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. FERROR(3)           MINTLIB LIBRARY FUNCTIONS           FERROR(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        ferror, feof, clearerr, fileno - stream status enquiries
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <stdio.h>
  12.  
  13.        int ferror(FILE *stream);
  14.  
  15.        int feof(FILE *stream);
  16.  
  17.        void clearerr(FILE *stream);
  18.  
  19.        int fileno(FILE *stream);
  20.  
  21. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  22.        ferror  returns  non-zero when an I/O error has previously
  23.        occurred reading from or writing to the named stream, oth-
  24.        erwise zero.
  25.  
  26.        feof   returns  non-zero  when  EOF  has  previously  been
  27.        detected reading the named input stream, otherwise zero.
  28.  
  29.        clearerr resets the error indicator and EOF  indicator  to
  30.        zero on the named stream.
  31.  
  32.        fileno returns the integer file descriptor associated with
  33.        the named stream.
  34.  
  35. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  36.        o✓op✓pe✓en✓n(✓(3✓3)✓),✓, f✓fo✓op✓pe✓en✓n(✓(3✓3)✓)
  37.  
  38. N✓NO✓OT✓TE✓E
  39.        All these functions are implemented as macros; they cannot
  40.        be declared or redeclared.
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.